package cn.tedu.note.service;

import java.util.List;
import java.util.Map;

import cn.tedu.note.entity.Note;

public interface NoteService {
	
	List<Map<String, Object>> listNotes(
			String notebookId)
		throws NotebookNotFoundException;
	
	Note getNote(String id)
		throws NoteNotFoundException;
	
	boolean saveNote(String id, 
			String title, 
			String body)
		throws NoteNotFoundException;
	
	Note addNote(String notebookId, 
			String userId, String title)
		throws NotebookNotFoundException,
		UserNotFoundException;
	//NoteService
	// String... 就是 String[] 
	int deleteNotes(String... id);
}








